<?php include('page_header.php')?>
<script type="text/javascript" src="../kindeditor/kindeditor.js"></script> 
<script type="text/javascript">
	KE.show({id : 'article_content'});
</script>
<form name="myform" method="post" action="?c=CArticle&m=insert">
    <table width="100%" cellpadding="2" cellspacing="1" class="tableborder">
        <tbody>
            <tr>
                <th colspan=2>基本信息</th>
            </tr>
            <tr>
                <td width="60" align="left" class="tablerow">标题</td>
                <td class="tablerow"><input name="article_title" type="text" value="" size="65"></td>
            </tr>
            <tr>
                <td align="left" class="tablerow">所属类别</td>
                <td align="left" class="tablerow">
                	<select name="cat_id" style="width: 10em">
                    	<?php foreach($categories as $i => $catgory):?>
                        <option value="<?= $catgory['cat_id']?>"><?= $catgory['cat_name']?></option>
                        <?php endforeach;?>
                	</select>
                </td>
            </tr>
            <tr>
                <td align="left" class="tablerow">来源</td>
                <td align="left" class="tablerow"><input name="article_from" type="text" value="" size="30"></td>
            </tr>
            <tr>
                <td align="left" class="tablerow">内容</td>
                <td class="tablerow"><textarea name="article_content" cols="100" rows="20" id="article_content"></textarea></td>
            </tr>
            <tr>
                <td align="left" class="tablerow">关键字</td>
                <td class="tablerow"><input name="article_keywords" type="text" value="" size="40"></td>
            </tr>
            <tr>
                <td align="left" class="tablerow">描述</td>
                <td class="tablerow"><textarea name="article_description" id="article_description" cols="45" rows="5"></textarea></td>
            </tr>
        </tbody>
        <tbody>
            <tr>
                <td height="25" colspan="2" bgcolor="#E1E1E1"><input name="" type="submit" value=" 提 交 "></td>
            </tr>
        </tbody>
    </table>
</form>
<?php include('page_footer.php')?>